package example;

import auto.base.TestNgSpringContextTests;
import auto.utils.DubboClient;
import com.abite.bee.dsp.workman.client.worker.dto.QueryWorkerWithPageParamDTO;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Multimap;
import com.google.common.collect.Multimaps;
import com.kipa.dubbo.excute.DubboRequestAbstract;
import com.kipa.dubbo.excute.DubboResponse;
import com.kipa.dubbo.service.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.bind.DefaultValue;
import org.testng.annotations.Test;
import org.testng.collections.ListMultiMap;
import org.testng.collections.Maps;
import org.testng.collections.MultiMap;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @Author: hongjie.lin
 * @Date: 2021/10/13 15:18
 */
public class RpcExample extends DubboClient{


    @Test
    public void rpcExample() {
        String interfaceName = "com.abite.bee.dsp.workman.client.worker.facade.WorkerFacade";
        String methodName = "queryWorkerWithPageByParam";
        QueryWorkerWithPageParamDTO queryWorkerWithPageParamDTO = new QueryWorkerWithPageParamDTO();

        JSONObject responseData = dubbo(
                interfaceName,
                methodName,
                QueryWorkerWithPageParamDTO.class.getName(),
                queryWorkerWithPageParamDTO
        );
    }




}
